// let o = ''
// if (3 > 2) {
//     o = 3
// }
// console.log(o);



let arr = [
    { name: 'xiaoming', age: 12 },
    { name: 'xiaohong', age: 13 }
]
console.log(arr[0].name);
// console.log(arr[3].name === null ? '不存在' : arr[3].name);
console.log(arr[2] == null ? '不存在' : arr[2].name);
console.log(typeof arr[2] == Object ? arr[2].name : '不存在');